import http from "../utils/http2.js";
/**
 * 检测用户名是否存在
 */
export function checkUser(username) {
  return http.get("/v1/user/check", { account: username });
}

export function queryUser(data) {
  return http.post("/v1/user/query", data);
}

//登录
export function login(data) {
  return http.post("/v1/user/login", data);
}
